#include "SRCommandArgument.h"
#include "SRCommand.h"


SRCommandArgument::SRCommandArgument()
{
}


SRCommandArgument::SRCommandArgument(QString str)
{
	values.append(str);
}


SRCommandArgument::SRCommandArgument(QStringList sl)
{
	values = sl;
}


SRCommandArgument::~SRCommandArgument()
{
	// TODO
}


QString SRCommandArgument::toString()
{
	QString stringRepresentation = values.join(SRCommand::commandArgumentValueSeparator);

	// end of argument string. append the argument separator
	stringRepresentation += SRCommand::commandArgumentSeparator;

	return stringRepresentation;
}
